Code Runner 亂碼問題


  1. 安裝code runner插件

  1. 安裝完畢上方會出現執行按鈕

  2. 執行上變得非常方便跟美觀,輸出在OUTPUT端

  3. 但在中文支援部分會出現亂碼

  4. 需要針對輸出時設定為 UTF-8

  5. 增加設定值

    "code-runner.executorMap": {
             "java": "cd $dir && javac -encoding utf8 $fileName && java -Dfile.encoding=UTF-8 $fileNameWithoutExt",
             "python": "set PYTHONIOENCODING=utf8 && python -u"
     },
    
  6. 大功告成!

#code runner #visual code #Python






你可能感興趣的文章

在ckEditor4自定義樣式,樣式效果出現在toolbar的樣式下拉式選單

在ckEditor4自定義樣式,樣式效果出現在toolbar的樣式下拉式選單

N + 1 problem

N + 1 problem

[RESOLVED] SQL With Keyword Error

[RESOLVED] SQL With Keyword Error






留言討論